using System;

namespace flickr.api
{
	public class FlickrException : ApplicationException
	{
		public readonly int Code;
		private string _message;

		public FlickrException(int code, string verbose)
		{
			Code = code;
			_message = verbose;
		}

		public override string Message
		{
			get
			{
				return _message + " (" + Code + ")";
			}
		}
	}
}
